package com.laowang.project.system.service.impl;

import java.util.List;
                                                                            import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.laowang.project.system.mapper.MyGoodsParamsMapper;
import com.laowang.project.system.domain.MyGoodsParams;
import com.laowang.project.system.service.MyGoodsParamsService;

/**
 * 商品参数Service业务层处理
 *
 * @author laowang
 * @date 2023-07-20
 */
@Service
public class MyGoodsParamsServiceImpl implements MyGoodsParamsService {
    @Autowired
    private MyGoodsParamsMapper myGoodsParamsMapper;

    /**
     * 查询商品参数
     *
     * @param id 商品参数ID
     * @return 商品参数
     */
    @Override
    public MyGoodsParams selectMyGoodsParamsById(Integer id) {
        return myGoodsParamsMapper.selectMyGoodsParamsById(id);
    }

    /**
     * 查询商品参数列表
     *
     * @param myGoodsParams 商品参数
     * @return 商品参数
     */
    @Override
    public List<MyGoodsParams> selectMyGoodsParamsList(MyGoodsParams myGoodsParams) {
        return myGoodsParamsMapper.selectMyGoodsParamsList(myGoodsParams);
    }

    /**
     * 新增商品参数
     *
     * @param myGoodsParams 商品参数
     * @return 结果
     */
    @Override
    public int insertMyGoodsParams(MyGoodsParams myGoodsParams) {
                                                                                                                                        return myGoodsParamsMapper.insertMyGoodsParams(myGoodsParams);
    }

    /**
     * 修改商品参数
     *
     * @param myGoodsParams 商品参数
     * @return 结果
     */
    @Override
    public int updateMyGoodsParams(MyGoodsParams myGoodsParams) {
                                                                                                                                        return myGoodsParamsMapper.updateMyGoodsParams(myGoodsParams);
    }

    /**
     * 批量删除商品参数
     *
     * @param ids 需要删除的商品参数ID
     * @return 结果
     */
    @Override
    public int deleteMyGoodsParamsByIds(Integer[] ids) {
        return myGoodsParamsMapper.deleteMyGoodsParamsByIds(ids);
    }

    /**
     * 删除商品参数信息
     *
     * @param id 商品参数ID
     * @return 结果
     */
    @Override
    public int deleteMyGoodsParamsById(Integer id) {
        return myGoodsParamsMapper.deleteMyGoodsParamsById(id);
    }
}
